﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace GPSTrackingAdminWebsiteManager.Espanol.Pages
{
    public partial class GPSTrackingAdminWebsiteManager : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Menu_Admin.Width = Unit.Percentage(100);
                lblUsername.Text = Page.User.Identity.Name;
            }
        }

        protected void btnLoginOut_Click(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Session.Abandon();

            Response.Redirect("~/Default.aspx", true);
        }        
    }
}